package com.hnyc.goods.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hnyc.goods.mapper.GoodsLocalMapper;
import com.hnyc.goods.domain.GoodsLocal;
import com.hnyc.goods.service.IGoodsLocalService;

/**
 * goodsService业务层处理
 * 
 * @author zero
 * @date 2023-03-10
 */
@Service
public class GoodsLocalServiceImpl implements IGoodsLocalService 
{
    @Autowired
    private GoodsLocalMapper goodsLocalMapper;

    /**
     * 查询goods
     * 
     * @param id goods主键
     * @return goods
     */
    @Override
    public GoodsLocal selectGoodsLocalById(Long id)
    {
        return goodsLocalMapper.selectGoodsLocalById(id);
    }

    /**
     * 查询goods列表
     * 
     * @param goodsLocal goods
     * @return goods
     */
    @Override
    public List<GoodsLocal> selectGoodsLocalList(GoodsLocal goodsLocal)
    {
        return goodsLocalMapper.selectGoodsLocalList(goodsLocal);
    }

    /**
     * 新增goods
     * 
     * @param goodsLocal goods
     * @return 结果
     */
    @Override
    public int insertGoodsLocal(GoodsLocal goodsLocal)
    {
        return goodsLocalMapper.insertGoodsLocal(goodsLocal);
    }

    /**
     * 修改goods
     * 
     * @param goodsLocal goods
     * @return 结果
     */
    @Override
    public int updateGoodsLocal(GoodsLocal goodsLocal)
    {
        return goodsLocalMapper.updateGoodsLocal(goodsLocal);
    }

    /**
     * 批量删除goods
     * 
     * @param ids 需要删除的goods主键
     * @return 结果
     */
    @Override
    public int deleteGoodsLocalByIds(Long[] ids)
    {
        return goodsLocalMapper.deleteGoodsLocalByIds(ids);
    }

    /**
     * 删除goods信息
     * 
     * @param id goods主键
     * @return 结果
     */
    @Override
    public int deleteGoodsLocalById(Long id)
    {
        return goodsLocalMapper.deleteGoodsLocalById(id);
    }
}
